<template>
  <div>
    <el-row :gutter="5" v-for="(item,index) in datas" :key="index" style="margin-bottom:5px">
      <el-col :span="6">
        <el-input size="mini" placeholder="预期结果" v-model="item[2]"></el-input>
      </el-col>
      <el-col :span="4">
        <el-select size="mini" v-model="item[0]">
          <el-option :label="item" :value="item" v-for="item in way" :key="item"></el-option>
        </el-select>
      </el-col>
      <el-col :span="10">
        <el-input size="mini" :placeholder="name" v-model="item[1]"></el-input>
      </el-col>
      <el-col :span="4">
        <el-button type="danger" icon="el-icon-delete" size="mini" @click="datas.splice(index,1)"></el-button>
      </el-col>
    </el-row>
    <el-button type="primary" size="mini" @click="datas.push(['','',''])" icon="el-icon-plus"></el-button>
  </div>
</template>

<script>
export default {
  components: {},
  props: ['datas', 'way', 'name'],
  data() {
    return {}
  },
}
</script>
<style scoped>
</style>